package com.conv.shop.common.enums;

public enum BusinessExceptionEnum {
    MEMBER_MOBILE_EXIST("手机号已注册"),
    PASSWORD_ERROR("密码错误"),
    MEMBER_NOT_EXIST("用户不存在"),
    MEMBER_NOT_LOGIN("用户未登录"),
    MEMBER_NOT_EXIST_OR_NOT_LOGIN("用户不存在或未登录"),
    MEMBER_NOT_LOGIN_OR_NOT_EXIST("用户未登录或不存在"),
    MEMBER_NOT_LOGIN_OR_NOT_EXIST_OR_PASSWORD_ERROR("用户未登录或不存在或密码错误"),
    MEMBER_NAME_EXIST("用户名已存在"),
    MEMBER_EMAIL_EXIST("邮箱已注册"),

    ;
    private String desc;

    BusinessExceptionEnum(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "BusinessExceptionEnum{" +
                "desc='" + desc + '\'' +
                '}';
    }
}
